const express = require('express')
const router = express.Router()

// 导入用户路由处理函数对应的模块
const department = require('../../router_handler/company/department')
const { auth } = require('../../utils')

// 获取列表
router.get('/', auth, department.getList)
// 新增
router.post('/', auth, department.addNew)
// 获取信息
router.get('/:id', auth, department.getById)
// 更新信息
router.put('/:id', auth, department.putById)
// 删除信息
router.delete('/:id', auth, department.delById)

module.exports = router